<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/global.jsp"%>
<html>
<head>
    <title>社区</title>
    <link rel="stylesheet" type="text/css" href="${staticPath}/resources/css/reset.css"/>
    <link rel="stylesheet" type="text/css" href="${staticPath}/resources/css/bbs.css"/>
    <link rel="stylesheet" type="text/css" href="${staticPath}/resources/css/down.css">
    <%@include file="/common/com.jsp"%>
    <script type="text/javascript" src="${staticPath}/resources/js/ip.js"></script>
    <!-- uediter相关的js开始   -->
    <script type="text/javascript" charset="utf-8" src="${staticPath}/resources/js/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="${staticPath}/resources/js/ueditor/ueditor.all.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="${staticPath}/resources/js/ueditor/lang/zh-cn/zh-cn.js"></script>
    <!-- uediter相关的js结束   -->
</head>
<body>
<!-- 顶端top头开始-->
<div class="top">
    <div>
         <ul>
            <c:if test="${sessionScope.user==null}" var="u">
                <li class="top_regist"><a href="${path}/front/toregist">注册</a></li>
                <li><a href="${staticPath}/front/tologin">登陆</a><span>|</span></li>
            </c:if>
            <c:if test="${!u}">
                <li><a href="${path}/front/logout">退出</a><span>|</span></li>
                <li class="top_regist"><a href="${path}/user/index">${sessionScope.user.username}</a></li>

            </c:if>
            <li><a href="#">帮助</a><span>|</span></li>
            <li><a href="#">贷款</a><span>|</span></li>
            <li><a href="#">理财</a><span>|</span></li>
            <li><a href="${path}/jizhang/index">记账</a><span>|</span></li>
           <%-- <li><a href="${path}/index"><img src="${staticPath}/resources/image/icon/home.png"/>首页</a><span>|</span></li>--%>
        </ul>
    </div>
</div>
<!-- 顶端top头结束-->
<!-- 中部 -->
<div class="wrap">
    <!-- 头部导航区 -->
    <div class="nav">
        <div class="nav_left">
            <img src="${staticPath}/resources/image/logo.png"/>
        </div>
        <div class="nav_right">
            <ul>
                <li><a href="#" class="nav_sign">签到</a></li>
                <li><a href="${path}/bbs/towritetopic" class="nav_send_msg">发帖</a></li>
                <li><a href="#">论坛帮助</a></li>
                <li id="nav_li_section" class="nav_li_section"><a href="#" class="nav_section">全部版块</a>
                    <!--全部版块 下拉框div-->
                    <div id="draw_down" class="draw_down">
                        <div class="draw_contrain">
                            <c:forEach items="${allsection}" var="item">
                                <div class="ctn_top">${item}</div>
                                <div class="clearfix" style="margin-bottom: 25px;">
                                    <ul style="margin-left:-5px;">
                                        <c:forEach items="${subsection}" var="subitem">
                                            <c:if test="${subitem.sectionType==item}">
                                                <li style="margin:2px 5px;float:left;text-align:left;">
                                                    <a href="${path}/bbs/opensection?sid=${subitem.id}">
                                                            ${subitem.sname}
                                                    </a>
                                                </li>
                                            </c:if>
                                        </c:forEach>
                                    </ul>
                                </div>
                            </c:forEach>

                        </div>


                    </div>
                    <div id="shadow_div" class="shadow_div"></div>
                </li>
                <li><a href="${path}/bbs/index">社区首页</a></li>
            </ul>
        </div>
    </div><!-- 头部导航区结束 -->

    <!-- 内容区 -->
    <div class="content" style="background:#ddd;margin-top:0px;">

        <div style="height:40px;background:#ddd;"></div>
        <form id="topic_form">
        <!--  包裹  -->
        <div class="content_center" style="margin:0 auto;width:840px;min-height:640px;z-index:0;background:white;">
            <div style="width:800px;min-height:600px;margin:0 auto;">
                <div style="height:40px;background:white;"></div>
                <input type="hidden" id="uid" name="uid" value="${sessionScope.user.id}"/>
                <div style="margin-top:10px;"> <input id="title" name="title" placeholder="请输入标题" type="text" style="width:400px;height:30px;padding:2px;"/>
                    主版块区:
                    <select id="sectionType">
                        <c:forEach items="${sectionlist}" var="item">
                            <option value="${item}">${item}</option>
                        </c:forEach>
                    </select>
                    主题分类:
                    <select name="sid" id="sid">

                    </select>
                </div>
                <!-- ueditor开始 -->
                <div class="write">
                    <form action="" method="post">
                        <script id="editor" type="text/plain" style="width:800px;height:200px;"></script>
                    </form>
                </div>
                <div class="ct_bottom clearfix">
                    <div class="rpy_bottom">
                        <a href="javascript:void(0)"  id="fabiaoBtn" style="margin-right: 0px;">发表</a>
                    </div>
                </div>   <!-- ueditor结束 -->
            </div>
        </div>
        </form>
    </div>  <!-- 内容区结束 -->
</div>  <!-- 中部结束 -->
<!--copyright开始-->
<div class="copyright clearfix" id="copyright">
    <div class="copyright_content">
        <ul>
            <li>关于
                <ul>
                    <li>品牌故事</li>
                    <li>联系我们</li>
                    <li>加入我们</li>
                    <li>版权声明</li>
                </ul>
            </li>
            <li>课程
                <ul>
                    <li>PHP开发</li>
                    <li>前端开发</li>
                    <li>JAVA开发</li>
                    <li>Android开发</li>
                </ul>
            </li>
            <li>关注
                <ul>
                    <li>新浪微博</li>
                    <li>腾讯微博</li>
                    <li>企业微信</li>
                    <li>QQ空间</li>
                </ul>
            </li>
            <li>留言
                <ul>
                    <li>意见反馈</li>
                    <li>问题留言</li>
                    <li>媒体联络</li>
                    <li>在线客服</li>
                </ul>
            </li>
            <li><img src="${staticPath}/resources/image/weixin.png" alt="微信关注" width="30" height="27" />微信关注
                <ul>
                    <li><img src="${staticPath}/resources/image/qrcode.jpg" alt="扫描关官方微信" width="102" height="102" /></li>
                </ul>
            </li>
        </ul>
    </div>
    <!--copyright_content结束-->
</div>  <!--copyright结束-->
<script type="text/javascript" src="${staticPath}/resources/js/bbs/bbsWriteTopic.js"></script>
</body>
</html>
